<template>


  <div class="app-container">
    <div>
      <el-row>
        <el-col :span="24">账号添加</el-col>
      </el-row>
    </div>
    <el-form ref="form" :model="form" label-width="80px" style="width: 100%;">
      <el-row>
        <el-col :span="6">
          <el-form-item label="账号">
            <el-input   v-model="form.name"></el-input>
          </el-form-item>

        </el-col>

        <el-col :span="6">
        <el-form-item label="用户名称">
          <el-input v-model="form.name" maxlength="4"  type="text"/>
        </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="性别">
            <el-select v-model="form.region" >
              <el-option label="请选择" value="" disabled="disabled"></el-option>
              <el-option label="男" value="男" />
              <el-option label="女" value="女" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="出生日期">
            <el-date-picker v-model="form.date1" type="date" placeholder="Pick a date" style="width: 100%;" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-form-item label="用户名称">
        <el-input v-model="form.name" maxlength="4"  type="text"/>
      </el-form-item>
      <el-form-item label="性别">
        <el-select v-model="form.region" placeholder="请选择">
          <el-option label="男" value="男" />
          <el-option label="女" value="女" />
        </el-select>
      </el-form-item>
      <el-form-item label="Activity time">
        <el-col :span="11">
          <el-date-picker v-model="form.date1" type="date" placeholder="Pick a date" style="width: 100%;" />
        </el-col>
        <el-col :span="2" class="line">-</el-col>
        <el-col :span="11">
          <el-time-picker v-model="form.date2" type="fixed-time" placeholder="Pick a time" style="width: 100%;" />
        </el-col>
      </el-form-item>
      <el-form-item label="Instant delivery">
        <el-switch v-model="form.delivery" />
      </el-form-item>
      <el-form-item label="Activity type">
        <el-checkbox-group v-model="form.type">
          <el-checkbox label="Online activities" name="type" />
          <el-checkbox label="Promotion activities" name="type" />
          <el-checkbox label="Offline activities" name="type" />
          <el-checkbox label="Simple brand exposure" name="type" />
        </el-checkbox-group>
      </el-form-item>
      <el-form-item label="Resources">
        <el-radio-group v-model="form.resource">
          <el-radio label="Sponsor" />
          <el-radio label="Venue" />
        </el-radio-group>
      </el-form-item>
      <el-form-item label="Activity form">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item>
<!--        <el-button type="primary" @click="onSubmit">查询</el-button>-->
<!--        <el-button @click="onCancel">重置</el-button>-->
      </el-form-item>
    </el-form>
  </div>

</template>

<script>
export default {
name: "listUser",
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  }
}
</script>

<style scoped>

</style>
